package com.free.web.controller;

import com.free.provider.spi.IUserService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class UserController {

    @Reference
    IUserService userService;

    @RequestMapping(value = "/index",method = RequestMethod.GET)
    public String index() {
        System.out.println(userService.getBy(11111111));
        return "ddd";
    }
}
